import { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Home',
        component: () => import(/* webpackChunkName: "home" */ '../views/Home/index.vue'),
        meta: {
            title: '首页'
        }
    },
    {
        path: '/about',
        name: 'About',
        component: () => import(/* webpackChunkName: "about" */ '../views/About/index.vue'),
        meta: {
            title: '关于'
        }
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import(/* webpackChunkName: "login" */ '../views/Login/index.vue'),
        meta: {
            title: '登入'
        }
    },
    {
        path: '/my',
        name: 'My',
        component: () => import(/* webpackChunkName: "my" */ '../views/My/index.vue'),
        meta: {
            title: '个人中心'
        }
    }
]

export default routes;